home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11259 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 72 65 | 64 2e 77 65 65 67 2e 75 |Path: re|d.weeg.u|
|00000010| 69 6f 77 61 2e 65 64 75 | 21 72 6f 62 69 6e 73 6f |iowa.edu|!robinso|
|00000020| 6e 0a 46 72 6f 6d 3a 20 | 54 68 65 20 41 6d 6f 72 |n.From: |The Amor|
|00000030| 70 68 6f 75 73 20 4d 61 | 73 73 20 3c 72 6f 62 69 |phous Ma|ss <robi|
|00000040| 6e 73 6f 6e 40 62 6c 75 | 65 2e 77 65 65 67 2e 75 |nson@blu|e.weeg.u|
|00000050| 69 6f 77 61 2e 65 64 75 | 3e 0a 4e 65 77 73 67 72 |iowa.edu|>.Newsgr|
|00000060| 6f 75 70 73 3a 20 63 6f | 6d 70 2e 6c 61 6e 67 2e |oups: co|mp.lang.|
|00000070| 63 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 50 |c.Subjec|t: Re: P|
|00000080| 72 6f 62 6c 65 6d 20 77 | 69 74 68 20 73 63 61 6e |roblem w|ith scan|
|00000090| 66 0a 44 61 74 65 3a 20 | 46 72 69 2c 20 32 32 20 |f.Date: |Fri, 22 |
|000000a0| 4d 61 72 20 31 39 39 36 | 20 31 34 3a 33 38 3a 32 |Mar 1996| 14:38:2|
|000000b0| 30 20 2d 30 36 30 30 0a | 4f 72 67 61 6e 69 7a 61 |0 -0600.|Organiza|
|000000c0| 74 69 6f 6e 3a 20 55 6e | 69 76 65 72 73 69 74 79 |tion: Un|iversity|
|000000d0| 20 6f 66 20 49 6f 77 61 | 2c 20 49 6f 77 61 20 43 | of Iowa|, Iowa C|
|000000e0| 69 74 79 2c 20 49 41 2c | 20 55 53 41 0a 44 69 73 |ity, IA,| USA.Dis|
|000000f0| 74 72 69 62 75 74 69 6f | 6e 3a 20 77 6f 72 6c 64 |tributio|n: world|
|00000100| 0a 4d 65 73 73 61 67 65 | 2d 49 44 3a 20 3c 50 69 |.Message|-ID: <Pi|
|00000110| 6e 65 2e 41 33 32 2e 33 | 2e 39 31 2e 39 36 30 33 |ne.A32.3|.91.9603|
|00000120| 32 32 31 34 33 35 32 31 | 2e 32 33 33 34 37 4b 2d |22143521|.23347K-|
|00000130| 31 30 30 30 30 30 40 72 | 65 64 2e 77 65 65 67 2e |100000@r|ed.weeg.|
|00000140| 75 69 6f 77 61 2e 65 64 | 75 3e 0a 52 65 66 65 72 |uiowa.ed|u>.Refer|
|00000150| 65 6e 63 65 73 3a 20 3c | 34 69 73 63 67 62 24 38 |ences: <|4iscgb$8|
|00000160| 68 39 40 6e 65 77 73 66 | 6c 61 73 68 2e 63 6f 6e |h9@newsf|lash.con|
|00000170| 63 6f 72 64 69 61 2e 63 | 61 3e 0a 4e 4e 54 50 2d |cordia.c|a>.NNTP-|
|00000180| 50 6f 73 74 69 6e 67 2d | 48 6f 73 74 3a 20 72 65 |Posting-|Host: re|
|00000190| 64 2e 77 65 65 67 2e 75 | 69 6f 77 61 2e 65 64 75 |d.weeg.u|iowa.edu|
|000001a0| 0a 4d 69 6d 65 2d 56 65 | 72 73 69 6f 6e 3a 20 31 |.Mime-Ve|rsion: 1|
|000001b0| 2e 30 0a 43 6f 6e 74 65 | 6e 74 2d 54 79 70 65 3a |.0.Conte|nt-Type:|
|000001c0| 20 54 45 58 54 2f 50 4c | 41 49 4e 3b 20 63 68 61 | TEXT/PL|AIN; cha|
|000001d0| 72 73 65 74 3d 55 53 2d | 41 53 43 49 49 0a 58 2d |rset=US-|ASCII.X-|
|000001e0| 53 65 6e 64 65 72 3a 20 | 72 6f 62 69 6e 73 6f 6e |Sender: |robinson|
|000001f0| 40 72 65 64 2e 77 65 65 | 67 2e 75 69 6f 77 61 2e |@red.wee|g.uiowa.|
|00000200| 65 64 75 0a 49 6e 2d 52 | 65 70 6c 79 2d 54 6f 3a |edu.In-R|eply-To:|
|00000210| 20 3c 34 69 73 63 67 62 | 24 38 68 39 40 6e 65 77 | <4iscgb|$8h9@new|
|00000220| 73 66 6c 61 73 68 2e 63 | 6f 6e 63 6f 72 64 69 61 |sflash.c|oncordia|
|00000230| 2e 63 61 3e 20 0a 0a 4f | 6e 20 54 68 75 2c 20 32 |.ca> ..O|n Thu, 2|
|00000240| 31 20 4d 61 72 20 31 39 | 39 36 20 76 5f 72 75 73 |1 Mar 19|96 v_rus|
|00000250| 6f 40 61 6c 63 6f 72 2e | 63 6f 6e 63 6f 72 64 69 |o@alcor.|concordi|
|00000260| 61 2e 63 61 20 77 72 6f | 74 65 3a 0a 0a 3e 20 49 |a.ca wro|te:..> I|
|00000270| 20 61 6d 20 77 72 69 74 | 69 6e 67 20 61 20 70 72 | am writ|ing a pr|
|00000280| 6f 67 72 61 6d 20 74 68 | 61 74 20 69 73 20 73 75 |ogram th|at is su|
|00000290| 70 70 6f 73 65 64 20 74 | 6f 20 67 61 74 68 65 72 |pposed t|o gather|
|000002a0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 66 72 6f | informa|tion fro|
|000002b0| 6d 20 74 68 65 0a 3e 20 | 75 73 65 72 2e 0a 3e 20 |m the.> |user..> |
|000002c0| 54 68 65 20 70 72 6f 67 | 72 61 6d 20 77 6f 72 6b |The prog|ram work|
|000002d0| 73 20 66 69 6e 65 20 69 | 66 20 74 68 65 20 75 73 |s fine i|f the us|
|000002e0| 65 72 20 65 6e 74 65 72 | 73 20 73 6f 6d 65 20 6e |er enter|s some n|
|000002f0| 75 6d 62 65 72 73 20 61 | 6e 64 20 70 72 65 73 73 |umbers a|nd press|
|00000300| 65 73 0a 3e 20 65 6e 74 | 65 72 2e 20 20 42 75 74 |es.> ent|er. But|
|00000310| 20 69 66 20 74 68 65 20 | 75 73 65 72 20 6a 75 73 | if the |user jus|
|00000320| 74 20 70 72 65 73 73 65 | 73 20 65 6e 74 65 72 20 |t presse|s enter |
|00000330| 77 69 74 68 6f 75 74 20 | 65 6e 74 65 72 69 6e 67 |without |entering|
|00000340| 20 61 6e 79 20 64 61 74 | 61 2c 0a 3e 20 74 68 65 | any dat|a,.> the|
|00000350| 20 63 75 72 73 6f 72 20 | 6a 75 73 74 20 73 74 61 | cursor |just sta|
|00000360| 72 74 73 20 61 20 6e 65 | 77 20 6c 69 6e 65 2e 20 |rts a ne|w line. |
|00000370| 20 0a 3e 20 43 61 6e 20 | 61 6e 79 6f 6e 65 20 74 | .> Can |anyone t|
|00000380| 65 6c 6c 20 6d 65 20 68 | 6f 77 20 49 20 63 61 6e |ell me h|ow I can|
|00000390| 20 61 76 6f 69 64 20 74 | 68 69 73 3f 0a 0a 20 20 | avoid t|his?.. |
|000003a0| 44 6f 6e 27 74 20 75 73 | 65 20 73 63 61 6e 66 28 |Don't us|e scanf(|
|000003b0| 22 25 66 22 29 3b 20 2d | 2d 20 69 74 27 6c 6c 20 |"%f"); -|- it'll |
|000003c0| 72 65 61 64 20 61 6e 64 | 20 64 69 73 63 61 72 64 |read and| discard|
|000003d0| 20 61 72 62 69 74 72 61 | 72 79 20 0a 61 6d 6f 75 | arbitra|ry .amou|
|000003e0| 6e 74 73 20 6f 66 20 77 | 68 69 74 65 73 70 61 63 |nts of w|hitespac|
|000003f0| 65 20 28 62 6c 61 6e 6b | 73 2c 20 74 61 62 73 20 |e (blank|s, tabs |
|00000400| 61 6e 64 20 6e 65 77 6c | 69 6e 65 73 29 20 6c 6f |and newl|ines) lo|
|00000410| 6f 6b 69 6e 67 20 66 6f | 72 20 73 6f 6d 65 74 68 |oking fo|r someth|
|00000420| 69 6e 67 20 0a 74 6f 20 | 72 65 61 64 20 69 6e 2e |ing .to |read in.|
|00000430| 20 20 55 73 65 20 66 67 | 65 74 73 28 29 20 6f 72 | Use fg|ets() or|
|00000440| 20 6c 6f 6f 70 20 6f 76 | 65 72 20 66 67 65 74 63 | loop ov|er fgetc|
|00000450| 28 29 2c 20 61 6e 64 20 | 63 6f 6e 76 65 72 74 20 |(), and |convert |
|00000460| 74 68 65 20 73 74 72 69 | 6e 67 20 74 6f 20 0a 61 |the stri|ng to .a|
|00000470| 20 64 6f 75 62 6c 65 20 | 28 6f 72 20 66 6c 6f 61 | double |(or floa|
|00000480| 74 29 20 77 69 74 68 20 | 61 74 6f 66 28 29 20 6f |t) with |atof() o|
|00000490| 72 20 73 74 72 74 6f 64 | 28 29 2e 20 20 54 68 69 |r strtod|(). Thi|
|000004a0| 73 20 6d 65 74 68 6f 64 | 20 61 6c 73 6f 20 61 6c |s method| also al|
|000004b0| 6c 6f 77 73 20 79 6f 75 | 20 0a 74 6f 20 72 65 63 |lows you| .to rec|
|000004c0| 6f 76 65 72 20 67 72 61 | 63 65 66 75 6c 6c 79 20 |over gra|cefully |
|000004d0| 69 66 20 74 68 65 20 75 | 73 65 72 20 74 79 70 65 |if the u|ser type|
|000004e0| 73 20 22 66 6f 6f 22 20 | 69 6e 73 74 65 61 64 20 |s "foo" |instead |
|000004f0| 6f 66 20 22 33 2e 31 34 | 22 2e 0a 0a 2f 2a 2a 4a |of "3.14|".../**J|
|00000500| 61 6d 65 73 20 52 6f 62 | 69 6e 73 6f 6e 2a 2a 2a |ames Rob|inson***|
|00000510| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000520| 2a 2a 2a 2a 20 20 20 20 | 20 20 20 20 20 20 20 20 |**** | |
|00000530| 0a 20 20 22 49 66 20 61 | 20 66 61 74 61 6c 20 65 |. "If a| fatal e|
|00000540| 72 72 6f 72 20 6f 63 63 | 75 72 73 2c 20 74 68 65 |rror occ|urs, the|
|00000550| 20 70 72 6f 67 72 61 6d | 20 73 68 6f 75 6c 64 20 | program| should |
|00000560| 6e 6f 74 20 62 65 20 61 | 6c 6c 6f 77 65 64 20 74 |not be a|llowed t|
|00000570| 6f 20 63 6f 6e 74 69 6e | 75 65 2e 22 0a 20 2d 2d |o contin|ue.". --|
|00000580| 20 4f 72 61 63 6c 65 20 | 50 72 6f 2a 43 20 55 73 | Oracle |Pro*C Us|
|00000590| 65 72 27 73 20 47 75 69 | 64 65 20 20 20 20 20 20 |er's Gui|de |
|000005a0| 20 20 20 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | *****|********|
|000005b0| 6a 61 6d 65 73 2d 72 6f | 62 69 6e 73 6f 6e 40 75 |james-ro|binson@u|
|000005c0| 69 6f 77 61 2e 65 64 75 | 2a 2a 2f 0a 0a 0a 0a |iowa.edu|**/.... |
+--------+-------------------------+-------------------------+--------+--------+